package spring.cloud.eurekaclientfund;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.session.data.redis.config.annotation.web.http.EnableRedisHttpSession;
//import spring.cloud.eurekaclientfund.openfeign.config.UserFeignConfig;


/**
 * @author Administrator
 */
@SpringBootApplication
@EnableEurekaClient
@EnableFeignClients(basePackages = "spring.cloud.eurekaclientfund")
//这里使用的是将UserFeignConfig类作为整个OpenFeign的全局的配置
//@EnableFeignClients(basePackages = "spring.cloud.eurekaclientfund",defaultConfiguration = UserFeignConfig.class)
//开启分布式会话共享
@EnableRedisHttpSession
public class EurekaClientFundApplication {

    public static void main(String[] args) {

        SpringApplication.run(EurekaClientFundApplication.class, args);
    }

}
